<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动布局练习</title>
    <style>
         .box{ 
            
            width: 1226px;
            height: 615px;
            background: red;
            margin: 0 auto;
         }
         .left{
            float: left;
            width: 234px;
            height: 615px;
            background-color: rebeccapurple;
         }
         .right{
            float: left;
            width: 992px;
            height: 615px;
            background-color: skyblue;
         }
         .right>div{
            width: 234px;
            height: 300px;
            background-color: royalblue;
            float: left;
            margin-left: 14px;
            margin-bottom: 14px;
         }
    </style>
</head>
<body>
    <div class="box">
        <div class="left">左</div>
        <div class="right">
            <div class="div1">1</div>
            <div class="div2">2</div>
            <div class="div3">3</div>
            <div class="div4">4</div>
            <div class="div5">5</div>
            <div class="div6">6</div>
            <div class="div7">7</div>
            <div class="div8">8</div>
        </div>
    </div>
</body>
</html>